/**
 * creation: 6-dec-2006
 */
package org.jfonia.staffnotation;

/**
 * A BasicTimeSignature represents a simple time-signature in the form of a fraction (2/4, 6/8, ...)
 * 
 * @author Wijnand
 *
 */
public class BasicTimeSignature
{
	private int nominator;
	private int denominator;

	public BasicTimeSignature(int nominator, int denominator)
	{
		this.nominator = nominator;
		this.denominator = denominator;
	}

	public int getDenominator()
	{
		return denominator;
	}

	public int getNominator()
	{
		return nominator;
	}

	/*	
	public BasicTimeSignature(int beatCount, int beatDuration, int baseValue)
	{
		nominator = beatCount;
		
		int b = 1;
		for (int i=CDuration.WHOLE; i<baseValue; i++)
			b *= 2;
				
		if (b%beatDuration==0)
			denominator = b/beatDuration;
		else if ( (3*b)%beatDuration==0 )
		{
			nominator *= 3;
			denominator = b*3/beatDuration;
		}
		else
			throw new RuntimeException("illegal beatDuration");
		
		if (denominator==0)
			throw new RuntimeException("illegal beatDuration 2");
		
		//System.out.println("nominator=" + nominator + "  denominator" + denominator);
	}
	*/
}
